<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    
</body>
<script>
    let arr = [{
        id:1,
        value:"2"
    },{
        id:2,
        value:"3"
    },{
        id:3,
        value:"4"
    }]
    // 筛选出 value 2
    let value = 2;
    let filterArr = arr.filter((item)=>item.value!=value);
    console.log(filterArr);
</script>
</html>